<template>
  <div class="thinglist">
    <li class="thing"><slot></slot>{{param}} <div class="dbutton"> <button v-on:click="decline">删除</button></div></li>
  </div>
</template>

<script>
export default {
  name: "thingList",
  props: ['param', 'listturn'],
  methods: {
            decline: function () {
                //向父组件传递参数
                this.$emit('delect', this.listturn)
            }

        }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
li{
  list-style: none;
  background-color: bisque;
}
</style>
